package cn.cdutet;

import cn.cdutet.Dao.Student_sum;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
        ctx.registerShutdownHook();
        Student_sum bean = ctx.getBean("student-sum", Student_sum.class);
        bean.save();
    }
}
